//
//  ElementLayer.h
//  PlantNanny
//
//  Created by Joueu on 14-12-24.
//
//

#ifndef __PlantNanny__ElementLayer__
#define __PlantNanny__ElementLayer__

#include "cocos2d.h"
#include "PopupLayer.h"
#include "ShaderLayer.h"
#include "cocos-ext.h"

USING_NS_CC;
USING_NS_CC_EXT;

class ElementLayer: public Layer
{
public:
    static ElementLayer *createWith(const char *tit = "生命之水", const char * cont = "作用：使用生命之水可以使挂掉的植物复活，分享你的养花心得到朋友圈将有机会获得生命之水哦~",const char * iconName = "wl_element@2x.png");
    virtual bool initWith(const char * tit, const char * cont ,const char * iconName);
private:
    PopupLayer *popLayer;
    ShaderLayer *shaderLayer;
    void closeBtnPressed(Ref *pSender, ui::Widget::TouchEventType type);
};

#endif /* defined(__PlantNanny__ElementLayer__) */
